package bubuntux.util;

import java.io.File;

public abstract class StringUtil {

	public static String getName(String path) {
		if (path != null) {
			path = path.substring(path.lastIndexOf(File.separatorChar) + 1,
					path.length());
		}
		return path;
	}

	public static String removeAccents(String str) {
		if (str != null) {
			str = str.replaceAll("[^\\p{ASCII}]", "");
		}
		return str;
	}

}
